@import './styles/variables.scss';
@import '../../node_modules/slick-carousel/slick/slick.css';
@import '../../node_modules/slick-carousel/slick/slick-theme.css';

.slick-prev {
  left: 20px;
  z-index: 1;
}

.slick-next {
  right: 20px;
  z-index: 1;
}

.slick-dots {
  bottom: 40px;
  bottom: 5vh;
  z-index: 10;
  li {
    height: auto;
    line-height: 1;
    margin: 0 1px;
  }
}

.slick-dots li button {
  padding: 10px;
  text-align: center;
  position: relative;
  &:before {
    opacity: 1;
    top: 6px;
    left: 6px;
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 10px;
    background-color: white;
    padding: 0;
    box-shadow: 0 0px 5px rgba(0, 0, 0, 0.2);
  }
}

.slick-dots li.slick-active button:before {
  color: $odc-orange;
  background-color: $odc-orange;
  opacity: 1;
}

.home-gallery {
  max-width: 100vw;
  overflow: hidden;
  .title {
    font-size: 1.35em;
    margin: 2em $reflex-grid-spacing * 2 0.7em;
  }
  .slick-track {
    .gatsby-image-wrapper {
      height: 100vh;
    }
  }

  .gatsby-image-wrapper {
    height: 100%;
  }

  .hero-image {
    margin-top: 0;
    min-height: 100vh;
    max-height: 100vh;
    height: 100%;
    height: 100vh4 img {
      max-height: 100%;
      max-height: 100vh;
      height: 100%;
    }
  }

  a:link {
    height: 100%;
    color: #fff;
    text-decoration: none;
    display: block;
    position: relative;
    background: rgba(#fff, 0.05);
  }

  a:after {
    display: none;
  }

  .react-photo-gallery--gallery {
    margin: 0 -1px;
  }
  .gallery-item {
    margin: 1px;
  }
  .react-photo-gallery--gallery a:link {
    .meta {
      transition: all $transition-duration;
      bottom: 50%;
      .title {
        transform: translateY(50%);
        margin-top: 0;
        margin-bottom: 0;
      }
    }
    &:after {
      display: block;
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      margin: 0;
      height: 100%;
      transition-duration: $transition-duration + 0.2s;
    }
    &:hover:after {
      background-color: rgba($odc-orange, 0.5);
    }
    &:hover {
      .meta {
        opacity: 1;
      }
      img {
        filter: blur(1px);
      }
    }
  }
  .meta {
    opacity: 0;
    position: absolute;
    height: auto;
    left: 0;
    right: 0;
    bottom: 10%;
    z-index: 2;
    text-align: center;
    padding: 0.5em 1em;
    border-radius: 2px;
    text-shadow: 0 0px 3px rgba(0, 0, 0, 0.5);
    .title {
      font-size: 1.18em;
      margin-left: 0;
      margin-right: 0;
      .en {
        display: block;
      }
    }
  }
  .hero-image .meta {
    text-align: left;
    bottom: 60px;
    bottom: 10%;
    font-size: 1.1em;
    opacity: 1;
  }
}

.container-full {
  padding-left: 0;
  padding-right: 0;
  max-width: $max-width;
  .react-photo-gallery--gallery {
    padding-left: $reflex-grid-spacing * 2;
    padding-right: $reflex-grid-spacing * 2;
  }
}
@media (max-width: $reflex-md) {
  .container-full {
    .react-photo-gallery--gallery {
      padding-left: 0;
      padding-right: 0;
    }
  }
}
